package com.ruoyi.web.controller.his;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.his.domain.OdsDoctorData;
import com.ruoyi.his.domain.OdsHospitalData;
import com.ruoyi.his.domain.WarnPreLog;
import com.ruoyi.his.service.IOdsDoctorDataService;
import com.ruoyi.his.service.IOdsHospitalDataService;
import com.ruoyi.his.service.IWarnPreLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/his")
public class feedHosDocController {

    @Autowired
    private IOdsHospitalDataService iOdsHospitalDataService;
    @Autowired
    private IOdsDoctorDataService iOdsDoctorDataService;
    @Autowired
    private IWarnPreLogService iWarnPreLogService;

    /**
     * 对外插入医院的方法
     * @param odsHospitalData
     * @return
     */
    @PostMapping("/insterHos")
    public AjaxResult insterHos(@RequestBody  OdsHospitalData odsHospitalData){
        return iOdsHospitalDataService.insertOdsHosByHosId(odsHospitalData);
    }

    @PostMapping("/insterDoc")
    public AjaxResult insterDoc(@RequestBody OdsDoctorData odsDoctorData){

        return iOdsDoctorDataService.insterDoc(odsDoctorData);
    }

}
